package com.example.operation.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class DispatchExpressDto {

    private Integer id;
    //配送id
    @ApiModelProperty(value = "配送id")
    @NotNull(message = "配送id不为空")
    private Integer dispatchId;
    //件
    @ApiModelProperty(value = "件")
    @NotNull(message = "件不为空")
    private Integer piece;
    //元
    @ApiModelProperty(value = "元")
    private double money;
    //增加几件
    @ApiModelProperty(value = "增加几件")
    @NotNull(message = "增加几件不为空")
    private Integer addPiece;
    //增加几元
    @ApiModelProperty(value = "增加几元")
    private double addMoney;
    //配送到
    @ApiModelProperty(value = "配送到")
    @NotBlank(message = "配送到不为空")
    private List<String> address;
    //首件（件）
    @ApiModelProperty(value = "首件（件）")
    @NotBlank(message = "首件（件）")
    private String firstPiece;
    //首费（元）
    @ApiModelProperty(value = "首费（元）")
    private double firstMoney;
    //续件（件）
    @ApiModelProperty(value = "续件（件）")
    @NotBlank(message = "续件（件）")
    private String firstAddPiece;
    //续费（元）
    @ApiModelProperty(value = "续费（元）")
    private double firstAddMoney;
}
